package org.pupil.rpc.protocol.compress;

import org.pupil.rpc.spi.ExtensionLoader;

/**
 * 压缩工厂
 */
public class CompressFactory {

    public static Compress get(String compress) throws Exception{
        return ExtensionLoader.getInstance().get(compress);
    }

    public static void init() throws Exception{
        ExtensionLoader.getInstance().loadExtension(Compress.class);
    }
}
